package dinnermate;

import com.cloudgarden.layout.AnchorLayout;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JPanel;
import javax.swing.JSeparator;
import javax.swing.JTabbedPane;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;

/**
 * This code was edited or generated using CloudGarden's Jigloo SWT/Swing GUI Builder, which is free
 * for non-commercial use. If Jigloo is being used commercially (ie, by a corporation, company or
 * business for any purpose whatever) then you should purchase a license for each developer using
 * Jigloo. Please visit www.cloudgarden.com for details. Use of Jigloo implies acceptance of these
 * licensing terms. A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR THIS MACHINE, SO JIGLOO OR THIS
 * CODE CANNOT BE USED LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
 */
public class MainFrame extends javax.swing.JFrame
{

	{
		// Set Look & Feel
		try
		{
			javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
	}

	private JTabbedPane tabs;
	private JPanel LayoutTab;
	private JPanel staffTab;
	private JSeparator layoutTitleUnderline;
	private JMenuItem exitMenuItem;
	private JMenu helpMenu;
	private JMenu fileMenu;
	private JMenuBar menuBar;
	private JLabel staffTitle;
	private JLabel menuTitle;
	private JLabel layoutTitle;
	private JPanel menuTab;

	/**
	 * Auto-generated main method to display this JFrame
	 */
	public static void main( String[] args )
	{
		SwingUtilities.invokeLater(new Runnable() {
			public void run()
			{
				MainFrame inst = new MainFrame();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}

	public MainFrame()
	{
		super();
		initGUI();
	}

	private void initGUI()
	{
		try
		{
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("DinnerMate");
			this.setResizable(false);
			{
				menuBar = new JMenuBar();
				setJMenuBar(menuBar);
				{
					fileMenu = new JMenu();
					menuBar.add(fileMenu);
					fileMenu.setText("File");
					{
						exitMenuItem = new JMenuItem();
						fileMenu.add(exitMenuItem);
						exitMenuItem.setText("Exit");
						exitMenuItem.addActionListener(new ActionListener() {
							public void actionPerformed(ActionEvent evt) {
								System.exit(0);
							}
						});
					}
				}
				{
					helpMenu = new JMenu();
					menuBar.add(helpMenu);
					helpMenu.setText("Help");
				}
			}
			{
				tabs = new JTabbedPane();
				getContentPane().add(tabs, BorderLayout.CENTER);
				tabs.setDoubleBuffered(true);
				tabs.setTabPlacement(JTabbedPane.BOTTOM);
				{
					LayoutTab = new JPanel();
					LayoutTab.setLayout(null);
					tabs.addTab("Layout", null, LayoutTab, null);
					{
						layoutTitle = new JLabel();
						LayoutTab.add(layoutTitle);
						layoutTitle.setText("Layout");
						layoutTitle.setFont(new java.awt.Font("AlArabiya", 0, 22));
						layoutTitle.setBounds(12, 6, 67, 37);
					}
					{
						layoutTitleUnderline = new JSeparator();
						LayoutTab.add(layoutTitleUnderline);
						AnchorLayout layoutTitleUnderlineLayout = new AnchorLayout();
						layoutTitleUnderline.setLayout(layoutTitleUnderlineLayout);
						layoutTitleUnderline.setBounds(12, 43, 65, 17);
					}
				}
				{
					menuTab = new JPanel();
					FlowLayout menuTabLayout = new FlowLayout();
					menuTabLayout.setAlignment(FlowLayout.LEFT);
					menuTab.setLayout(menuTabLayout);
					tabs.addTab("Menu", null, menuTab, null);
					{
						menuTitle = new JLabel();
						menuTab.add(menuTitle);
						menuTitle.setText("Menu");
						menuTitle.setFont(new java.awt.Font("AlArabiya", 0, 22));
					}
				}
				{
					staffTab = new JPanel();
					FlowLayout staffTabLayout = new FlowLayout();
					staffTabLayout.setAlignment(FlowLayout.LEFT);
					staffTab.setLayout(staffTabLayout);
					tabs.addTab("Staff", null, staffTab, null);
					{
						staffTitle = new JLabel();
						staffTab.add(staffTitle);
						staffTitle.setText("Staff");
						staffTitle.setFont(new java.awt.Font("AlArabiya", 0, 22));
					}
				}
			}
			pack();
			this.setSize(800, 600);
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
	}
}
